package org.dcits.model;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Tranflow implements Serializable {
    private String aAcctNo;

    private String bAcctNo;

    private Double salary;

    private Date date;

    private String result;

    private static final long serialVersionUID = 1L;

    public String getaAcctNo() {
        return aAcctNo;
    }

    public void setaAcctNo(String aAcctNo) {
        this.aAcctNo = aAcctNo;
    }

    public String getbAcctNo() {
        return bAcctNo;
    }

    public void setbAcctNo(String bAcctNo) {
        this.bAcctNo = bAcctNo;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Tranflow other = (Tranflow) that;
        return (this.getaAcctNo() == null ? other.getaAcctNo() == null : this.getaAcctNo().equals(other.getaAcctNo()))
            && (this.getbAcctNo() == null ? other.getbAcctNo() == null : this.getbAcctNo().equals(other.getbAcctNo()))
            && (this.getSalary() == null ? other.getSalary() == null : this.getSalary().equals(other.getSalary()))
            && (this.getDate() == null ? other.getDate() == null : this.getDate().equals(other.getDate()))
            && (this.getResult() == null ? other.getResult() == null : this.getResult().equals(other.getResult()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getaAcctNo() == null) ? 0 : getaAcctNo().hashCode());
        result = prime * result + ((getbAcctNo() == null) ? 0 : getbAcctNo().hashCode());
        result = prime * result + ((getSalary() == null) ? 0 : getSalary().hashCode());
        result = prime * result + ((getDate() == null) ? 0 : getDate().hashCode());
        result = prime * result + ((getResult() == null) ? 0 : getResult().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", aAcctNo=").append(aAcctNo);
        sb.append(", bAcctNo=").append(bAcctNo);
        sb.append(", salary=").append(salary);
        sb.append(", date=").append(date);
        sb.append(", result=").append(result);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}